//////////////////////////////////////////////////////////////////////////////////
//	Copyright 2011 by Yosef Grabivker, ryuho@homenetworksoft.com
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.
//

#ifndef _PERFOMANCE_TAB_YG_H__
#define _PERFOMANCE_TAB_YG_H__

#include "def.h"

class CPerfomanceTab: public wxPanel, public IGUIBind, public ILoggable, public ITabedPageUI
{
public:
								CPerfomanceTab(wxWindow* pParent, class CGUILogic& logic, class CPropertyStorage& propStorage);
	virtual						~CPerfomanceTab(void);
	virtual wxString			GetLog();

	virtual cTabPageID			GetTabID() { return cTabIDPerfomance; }

	//IGUIBind
	virtual void 				SetVal(const wxString& str);

private:
	wxString					FormatValue( class CMarkupSTL&	doc, const char* szXMLTag);

private:
	class CStatusPanel*			m_statCon;
    class CStatusPanel*			m_statRTCache;
    class CStatusPanel*			m_statMemory;
    class CStatusPanel*			m_statCPU;
	class CGUILogic&			m_logic;

	wxBoxSizer*					m_srStat;

	//NAT
	wxStaticText*				m_pTxtNatMAX;
	wxStaticText*				m_pTxtNatCur;
	wxStaticText*				m_pTxtNatLeak;
	wxStaticText*				m_pTxtNatRepCnt;
	wxStaticText*				m_pTxtNatRebootCnt;

	//Mem
	wxStaticText*				m_pTxtMMMAX;
	wxStaticText*				m_pTxtMMCur;
	wxStaticText*				m_pTxtMMFree;
	wxStaticText*				m_pTxtMMUsage;
	wxStaticText*				m_pTxtMMRebootCnt;

	//RT
	wxStaticText*				m_pTxtRTMAX;
	wxStaticText*				m_pTxtRTCur;
	wxStaticText*				m_pTxtRTLeak;
	wxStaticText*				m_pTxtRTRepCnt;
	wxStaticText*				m_pTxtRTRebootCnt;
};

#endif //_PERFOMANCE_TAB_YG_H__